<!DOCTYPE html>
<html class="pixel-ratio-1" style="background-color: #f1f1f1;">

<head>
    <meta charset="utf-8" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
    <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
    <meta name="viewport" content="width=375,user-scalabe=no">
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <script src="../../../../public/vendor/flexible/flexible.js"></script>
    <title>新增销售计划</title>
    <link rel="stylesheet" type="text/css" href="../../../../public/vendor/weui/weui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../../public/css/common.css" />
    <link rel="stylesheet" type="text/css" href="../../../../public/css/iconfont/iconfont.css" />
    <link rel="stylesheet" href="../../../../public/vendor/weui/jquery-weui.css">
    <link rel="stylesheet" href="../../../../public/vendor/select2/select2.css">
    <link rel="stylesheet" href="../../../../public/css/features/salesplan/addsalesplan.css">
    <script id="addsale-template" type="text/x-template">
            <div class='entrycon'>
               <h4 class="plantails-head" style="padding-top: 10px;padding-bottom: 10px;font-size: 17px;">计划明细</h4>
            </div>
            {{~ it :value:index}}
                <div class="report-contents-item-box" id="addsale{{=value.seq}}">
                    <!-- <div style="padding:10px">
                        <div class="entry" style="text-align:center;font-weight:800">分录{{=value.seq}}</div>
                    </div> -->
                    <div class="weui-cell materialinfo">
                        <div class="weui-cell__hd"><label class="weui-label">物料</label></div>
                        <div class="weui-cell__bd" style="margin-left: 70px;">
                            {{=value.material.name}}({{=value.material.numCode}})
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">物料规格</label></div>
                        <div class="weui-cell__bd">
                            {{=value.material.model}}
                        </div>
                    </div>
                     <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">计划基本数量</label></div>
                        <div class="weui-cell__bd">
                             {{? Utils.IsNotNull(value.baseQty)}}
                                 {{=value.baseQty}}
                             {{??}}
                             <div>&mdash;</div>
                              {{?}}
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">基本计量单位</label></div>
                        <div class="weui-cell__bd">
                            {{=value.material.baseMeasureUnit}}                            
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">计划辅助数量</label></div>
                        <div class="weui-cell__bd">  
                               {{? Utils.IsNotNull(value.fassistQty)}}
                                  {{=value.fassistQty}}
                               {{??}}
                               <div>&mdash;</div>
                               {{?}}
                        </div>
                    </div>
                     <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">辅助计量单位</label></div>
                        <div class="weui-cell__bd">
                           {{? Utils.IsNotNull(value.material.fassistUnit)}}
                           {{=value.material.fassistUnit}}
                           {{??}}
                           <div>&mdash;</div>
                           {{?}}
                        </div>
                    </div>
                      <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">是否赠品</label></div>
                        <div class="weui-cell__bd">
                           {{? value.isGift===true}}
                            是
                            {{??}}
                            否
                            {{?}}
                        </div>
                    </div>
                   
                    <div class="weui-cell">
                        <div class="">
                            <div class="weui-uploader__hd">
                                <p class="weui-uploader__title">备注</p>
                            </div>
                            <textarea class="weui-textarea remark" rows="1" name="tags" data-plugin="maxlength"
                                                  data-placement="bottom-right-inside" readonly="readonly">{{=value.remark}}</textarea>
                        </div>
                    </div>
                     <div class="weui-cell plantails" style="display: flex;justify-content: space-around;padding:0px" id="operate{{=value.seq}}">
                        <div style="flex:1;text-align:center;border-right: 1px solid #e6e6e6;padding:10px">
                        <div class="operation-button" data-flag="table-click-delete">
                            <i class="icon iconfont icon-linear-delete icon-font-size-24" style="font-size: 24px;color:#e24f2efd"
                                aria-hidden="true"></i>
                            <!-- <span class="operation-button-text">删除</span> -->
                        </div>
                        </div>
                        <div style="flex:1;text-align:center;padding:10px">
                            <div class="operation-button" data-flag="table-click-edit">
                            <i class="icon iconfont icon-edit-no-border icon-font-size-24" style="font-size: 24px;color:#fe8636fd"
                                aria-hidden="true"></i>
                            <!-- <span class="operation-button-text">编辑</span> -->
                        </div>
                        </div>
                    </div>
                </div>
                   
                </div>
            {{~}}
        </script>
</head>

<body>
    <div id="main-addsalesplan">
        <!-- @submit.prevent="add" -->
        <form id="addsalesplan-form">
            <div class="weui-cells__group weui-cells__group_form">
                <div class="report-contents-item-box">
                    <div class="weui-cell weui-cell_select" style="padding: 15px;" id="search-date">
                        <div class="weui-cell__hd stycon">
                            <label class="weui-label">业务日期<span class="red-900">&nbsp;*</span></label>
                        </div>
                        <div class="weui-cell__bd">
                            <input class="weui-input clearContent masterpad" type="text" id="businessTime"
                                placeholder="请选择业务日期..." required emptyTips="请选择业务日期" v-model="bizDate">
                        </div>
                    </div>
                    <div class="weui-cell weui-cell_select" style="padding: 15px;">
                        <div class="weui-cell_orgs" style="display: -webkit-flex;align-items: center;">
                            <span class="weui-cell__hd stycon selcon" style="padding-right: 10px">
                                <span>销售组织<span class="red-900">&nbsp;*</span></span>
                            </span>
                            <span class="weui-cell__ft">
                                <select class="weui-select clearContent " id="saleOrgs" style="visibility: hidden;"
                                    v-model="saleOrg.id" required>
                                </select>
                            </span>
                        </div>
                    </div>
                    <div class="weui-cell weui-cell_select" style="padding: 15px;" id="delivery-date">
                        <div class="weui-cell__hd stycon">
                            <label class="weui-label">发货日期<span class="red-900">&nbsp;*</span></label>
                        </div>
                        <div class="weui-cell__bd">
                            <input class="weui-input clearContent masterpad" type="text" id="deliveryDate"
                                placeholder="请选择发货日期..." required emptyTips="请选择发货日期" v-model="deliveryDate">
                        </div>
                    </div>
                    <div class="weui-cell weui-cell_select" style="padding: 15px;">
                        <div class="weui-cell_orgs" style="display: -webkit-flex;align-items: center;">
                            <span class="weui-cell__hd stycon selcon" style="padding-right: 10px">
                                <span>发货类型<span class="red-900">&nbsp;*</span></span>
                            </span>
                            <span class="weui-cell__ft">
                                <select class="weui-select clearContent " id="shippingType" style="visibility: hidden;"
                                    v-model="shippingType" required>
                                </select>
                            </span>
                        </div>
                    </div>
                    <div class="weui-cell weui-cell_select" style="padding: 15px;">
                        <div class="weui-cell_orgs" style="display: -webkit-flex;align-items: center;">
                            <span class="weui-cell__hd stycon selcon" style="padding-right: 10px">
                                <span>客户信息<span class="red-900">&nbsp;*</span></span>
                            </span>
                            <span class="weui-cell__ft">
                                <select class="weui-select clearContent" id="selCustomerInfos"
                                    style="visibility: hidden;" v-model="customer.id" required>
                                </select>
                            </span>
                        </div>
                    </div>
                    <div class="weui-cell" style="padding: 15px;">
                        <div class="weui-cell__hd stycon">
                            <label class="weui-label">联系方式<span class="red-900">&nbsp;*</span></span></label>
                        </div>
                        <div class="weui-cell__bd">
                            <input class="weui-input clearContent masterpad" type="tel" maxlength="11" id="witnessPhone"
                                placeholder="请输入联系方式..." pattern="REG_PATTERN_PHONE" emptyTips="请输入联系方式"
                                notMatchTips="请输入正确的联系方式" v-model="customer.phoneNum" required>
                        </div>
                    </div>
                    <div class="weui-cell" style="padding: 15px;">
                        <div class="weui-cell__hd"><label class="weui-label">客户地址</label></div>
                        <div class="weui-cell__bd">
                            <input class="weui-input clearContent masterpad" type="text" id="customerAddress"
                                v-model="customer.address" placeholder="请输入客户地址...">
                        </div>
                    </div>
                    <div class="weui-cell weui-cell_select" style="padding: 15px;">
                        <div class="weui-cell_orgs" style="display: -webkit-flex;align-items: center;">
                            <span class="weui-cell__hd stycon selcon" style="padding-right: 10px">
                                <span>销售员<span class="red-900">&nbsp;*</span></span>
                            </span>
                            <span class="weui-cell__ft">
                                <select class="weui-select clearContent " id="seller" style="visibility: hidden;"
                                    required>
                                </select>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="addSalesEntry">
                <div class="weui-cell" style="padding: 0px;">
                    <div class="weui-cell__bd" id="addSalesEntry" style="text-align: center;">
                        <div class="addentryst">
                            <span class="addicon">
                                <i class="icon iconfont icon-add-line icon-font-size-24 icon-click"
                                    style="font-size: 24px;" aria-hidden="true"></i>
                            </span>
                            <span style="text-align: center;">添加计划明细</span>
                        </div>
                    </div>
                </div>
            </div>
            <div id="salesEntry">

            </div>
            <div class="report-contents-item-box operation ">
                <div class="weui-cell operation-child">
                    <a href="javascript:;" class="weui-btn weui-btn_default"
                        style="width: 38%;border-radius:8px;background-color: #fff;margin-left: 0px;"
                        id="returnMain">取消</a>
                    <a href="javascript:;" class="weui-btn weui-btn_primary"
                        style="width: 60%;border-radius:8px;margin-top: 0px;margin-right: 0px;" id="informationSubmit"
                        v-on:click="submit">提交</a>
                </div>
            </div>
        </form>
    </div>

    <script type="text/javascript" src="../../../../public/vendor/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/vue/vue.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/moment/moment.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/weui/weui.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/weui/jquery-weui.min.js"></script>
    <script type="text/javascript" src="../../../../public/js/common/iosadaptation.js"></script>
    <script type="text/javascript" src="../../../../public/js/config/utils.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/select2/select2.full.min.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/select2/i18n/zh-CN.js"></script>
    <script type="text/javascript" src="../../../../public/vendor/form-entries/form-entries.js"></script>

    <script type="module" src="../../../../public/js/features/biz/salesplan/addsalesplan.js"></script>
</body>

</html>